package gof.com.yew.factory.abstractfactory;

public class FactoryProducer {
	
	public static AbstractFactory getFactory(String type) {
		if("shape".equals(type)) {
			return new ShapeFactory();
		}else if("color".equals(type)) {
			return new ColorFactory();
		}
		return null;
	}

}
